---
layout: "default"
title: "_RandomAccessAmbiguity"
description: "Swift documentation for '_RandomAccessAmbiguity': Used to force conformers of RandomAccessIndexType to implement
advancedBy methods and distanceTo."
keywords: "_RandomAccessAmbiguity,protocol,swift,documentation,Distance"
root: "/v2.0"
---

<div class="intro-declaration"><code class="language-swift">protocol _RandomAccessAmbiguity</code></div>

<div class="discussion comment">
    <p>Used to force conformers of RandomAccessIndexType to implement
<code>advancedBy</code> methods and <code>distanceTo</code>.</p>
</div>

<table class="standard">
<tr>
<th id="inheritance">Inheritance</th>
<td>
<span class="viz"><a href="hierarchy/">View Protocol Hierarchy &rarr;</a></span>
</td>
</tr>

<tr>
<th id="aliases">Associated Types</th>
<td>
<span id="aliasesmark"></span>
<div class="declaration">
<code class="language-swift">Distance : _SignedIntegerType = Int</code>
</div>
</td>
</tr>


<tr>
<th>Import</th>
<td><code class="language-swift">import Swift</code></td>
</tr>

</table>









<h3>Default Implementations</h3>







<div class="declaration" id="func--advancedby_">
<a class="toggle-link" data-toggle="collapse" href="#comment-func--advancedby_">func advancedBy(<wbr>_:)</a>
        
<div class="comment collapse" id="comment-func--advancedby_"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">func advancedBy(n: Self.Distance) -&gt; Self</code>
    
    
</div></div>
</div>





